﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace PP.Models
{
    public class PPDbContextInitializer : DropCreateDatabaseIfModelChanges<PPDbContext>
    {
        protected override void Seed(PPDbContext context)
        {
            var item1 = new CmsItem { Text = "this is some text" };
            context.CmsItems.Add(item1);

            context.SaveChanges();
        }
    }
}